Carbon


UseThemeFont

Header: Appearance.h Carbon status: Supported

Sets the font of the current graphics port to one of the current theme’s system fonts.

OSStatus UseThemeFont (
    ThemeFontID inFontID, 
    ScriptCode inScript
);
inFontID

A value of type ThemeFontID. Pass a constant specifying the kind of font (that is, the current large, small, or small emphasized system fonts or the views font) to be applied to the current port. See “Theme Font ID Constants” for descriptions of possible values.

inScript

A value of type ScriptCode. Pass a script code specifying the script system for which you wish to set the current font; you may pass the metascript code smSystemScript to specify the system script.

function result

A result code.

DISCUSSION

Your application can call the UseThemeFont function to draw text in one of the current theme’s system fonts.

Also see the function GetThemeFont.

VERSION NOTES

This function is available with Appearance Manager 1.1 and later.

AVAILABILITY

Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)